import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //查询限额信息下拉列表
  getSelectData: (query) => api.post(`${config.interfaces.type5}risk-server/riskCtrl/queryRules`, query),
  //获取列表
  queryWaringList: (query) => api.post(`${config.interfaces.type5}risk-server/riskCtrl/query-warning-history`, query),
  //获取限额触警详情 作废
  getWariningDetail: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/query-warning-history/items`, query),
  // 获取限额触警详情嵌套表格
  getLimitWariningDetail: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/query-warning-history/items`, query),
  // 获取限额详情嵌套表格
  getLimitDetail: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/find/${query.ruleId}`, {}),
};
